Ext.ns("Game.tiny");

/**
 * 图形类型类 总类
 * @class Game.tiny.Tetris_Simple
 * @extends Ext.util.Observable
 */
Game.tiny.Tetris_Simple = Ext.extend(Ext.util.Observable,{
  /**
   * 构造函数
   * @constructor 
   * @param {object} data
   */
  constructor:function(data){
    Game.tiny.Tetris_Simple.superclass.constructor.apply(this, arguments);  
    this._data = data;
    this._pos = 0;
  },
  /**
   * 旋转图形
   * @method rotate
   */
  rotate:function(){
    if(this._pos == this._data.length){
      this._pos = 0;
    }else{
      this._pos ++;
    }
  },
  /**
   * 获取当前数据
   * @method getData
   */
  getData:function(){
    return this._data[this._pos];
  }
});
 